package entity;

/**
 * AbstractBargain entity provides the base persistence definition of the
 * Bargain entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractBargain implements java.io.Serializable {

	// Fields

	private Integer bargainId;
	private Book book;
	private Double bookNewPrice;

	// Constructors

	/** default constructor */
	public AbstractBargain() {
	}

	/** full constructor */
	public AbstractBargain(Book book, Double bookNewPrice) {
		this.book = book;
		this.bookNewPrice = bookNewPrice;
	}

	// Property accessors

	public Integer getBargainId() {
		return this.bargainId;
	}

	public void setBargainId(Integer bargainId) {
		this.bargainId = bargainId;
	}

	public Book getBook() {
		return this.book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public Double getBookNewPrice() {
		return this.bookNewPrice;
	}

	public void setBookNewPrice(Double bookNewPrice) {
		this.bookNewPrice = bookNewPrice;
	}

}